<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<p:dialog header="Student Detail" id="studentDialog"
	widgetVar="studentDialog" resizable="true" showEffect="explode"
	hideEffect="explode" width="325" xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	<h:panelGrid id="display" columns="1" cellpadding="4">
		<h:panelGroup>
			<p:fieldset legend="#{msgs.fieldset}" toggleable="false">
				<h:panelGrid id="listPersonalInfo" columns="2" cellpadding="10">
					<h:outputLabel for="firstName" value="#{msgs.firstName}" />
					<h:outputText id="firstName"
						value="#{manageStudentRegistration.selectedStudent.firstName}"
						escape="true" />
					<h:outputLabel for="lastName" value="#{msgs.lastName}" />
					<h:outputText id="lastName"
						value="#{manageStudentRegistration.selectedStudent.lastName}" />
					<h:outputLabel for="birthDate" value="#{msgs.birthDate}" />
					<h:outputText id="birthDate"
						value="#{manageStudentRegistration.selectedStudent.birthDate}">
						<f:convertDateTime pattern="dd/MM/yyyy" />
					</h:outputText>
					<h:outputLabel for="avgGrade" value="#{msgs.avgGrade}" />
					<h:outputText id="avgGrade"
						value="#{manageStudentRegistration.selectedStudent.avgGrade}" />
				</h:panelGrid>
			</p:fieldset>
		</h:panelGroup>
		<h:panelGroup>
			<p:fieldset legend="#{msgs.grades}" toggleable="false">
				<h:panelGrid id="grades" style="width:100%" columns="2">
					<h:outputText value="#{msgs.discipline}" styleClass="header" />
					<h:outputText value="#{msgs.grade}" styleClass="header" />
					<c:forEach var="grade"
						items="#{manageStudentRegistration.selectedStudent.grades}">
						<h:outputText value="#{grade.discipline}" />
						<h:outputText value="#{grade.grade}" />
					</c:forEach>
				</h:panelGrid>
			</p:fieldset>

		</h:panelGroup>
	</h:panelGrid>
</p:dialog>

